import { Modifier } from "../../base/Modifier";
import { CalcDimension } from "../../entity/CalcDimension";

export class OffsetModifier extends Modifier {
    static identity = Symbol("offset");

    applyPeer(node: any, jsValue: any) {

        //入参检测
        if (jsValue === null || jsValue === undefined) {
            console.log("Setoffset: The first param type is not invalid.");
            return;
        }
        if (super.CheckJsPositionValue(jsValue)) {
            //  SetOffset(x, y);
        } else {
            //  SetOffset(0.0_vp, 0.0_vp);
        }
        console.log(jsValue['x'], jsValue['y']);
    }
} 